﻿Imports BusinessRule.DTO

Public Interface uLMSUnqualifiedIBusiness
    ''' <summary>
    ''' 插入数据到不合格信息表
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function InsertUnqualifiedData(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 获取不合格品信息 create tianFW
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetUnqualifiedInfo(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    ''' <summary>
    ''' 更新不合格品审理信息
    ''' create tianFW
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function updateUnqualifiedInfo(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 获取批次总的待检数 cretaeTianFW
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetNeedCheckQty(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 根据批次id获取该批次的所有不合格品记录
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainerNonconformingInfo(ByVal containerID As String) As DataTable

    ''' <summary>
    ''' 根据不合格品唯一ID删除不合格品
    ''' </summary>
    ''' <param name="containerNonconformingInfoID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DelContainerNonconformingInfo(ByVal containerNonconformingInfoID As String) As Boolean

    ''' <summary>
    ''' 获取不合格品记录，主页显示 add YangJiang 20180425
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetUnqualifiedMainView(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 装试不合格审理查询
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetZSUnqualifiedInfo(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    ''' <summary>
    ''' 更新批次不合格品标识
    ''' </summary>
    ''' <param name="containerID">批次ID</param>
    ''' <param name="type">不合格品标识 1是 0否 </param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateNonConformingNum(ByVal containerID As String, ByVal type As Integer) As Boolean
End Interface
